package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.ExperimentProcessResultDetail;
import com.zhijian.medical.entity.vo.request.ExperimentProcessResultDetailSearchVo;
import com.zhijian.medical.entity.vo.response.ExperimentProcessResultDetailVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 实验流程-结果明细 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2022-04-08 23:19:31
 */
public interface ExperimentProcessResultDetailService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    ExperimentProcessResultDetail selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    ExperimentProcessResultDetailVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 根据实验流程id进行删除
     *
     * @param experimentProcessId
     * @return
     */
    void deleteByExperimentProcessId(Long experimentProcessId);

    /**
     * 新增
     *
     * @param experimentProcessResultDetail
     * @return
     */
    Long insert(ExperimentProcessResultDetail experimentProcessResultDetail);

    /**
     * 更改
     *
     * @param experimentProcessResultDetail
     * @return
     */
    boolean update(ExperimentProcessResultDetail experimentProcessResultDetail);

    /**
     * 总数
     *
     * @param experimentProcessResultDetailSearchVo
     * @return
     */
    Integer count(ExperimentProcessResultDetailSearchVo experimentProcessResultDetailSearchVo);

    /**
     * 列表
     *
     * @param experimentProcessResultDetailSearchVo
     * @return
     */
    List<ExperimentProcessResultDetailVo> selectList(ExperimentProcessResultDetailSearchVo experimentProcessResultDetailSearchVo);

    /**
     * 分页查询
     *
     * @param experimentProcessResultDetailSearchVo
     * @return
     */
    Page<ExperimentProcessResultDetailVo> selectPage(ExperimentProcessResultDetailSearchVo experimentProcessResultDetailSearchVo);

    /**
     * 根据结果id集合进行删除
     *
     * @param resultIds
     * @return
     */
    void deleteByResultIds(List<Long> resultIds);
}